from django.shortcuts import render

# Create your views here.
from rest_framework.mixins import ListModelMixin
from rest_framework.viewsets import GenericViewSet
from .models import Problem
from .serializers import ProblemSerializer
# from .page import ProblemNumberPagination


class ProblemView(GenericViewSet, ListModelMixin):
    queryset = Problem.objects.all().order_by('id')
    serializer_class = ProblemSerializer
    # pagination_class = ProblemNumberPagination